package org.piggy.common.constants;

/**
 * Dubbo常量类
 */
public interface DubboConstants {

	String DUBBO_PROTOCOL_PORT = "dubbo.protocol.port";
	
	String DUBBO_APPLICATION_NAME = "dubbo.application.name";
	
	String DUBBO_REGISTER_ADDRESS = "dubbo.register.address";

	String DUBBO_METHOD_NAME = "dubbo.method.name";

	String CONSISTENT_HASH = "consistenthash";

	// 加权轮询
	String ROUND_ROBIN = "roundrobin";

	String RANDOM = "random";

	// 最少活跃优先 + 加权随机
	String AAA = "leastactive";

	// 最短响应优先 + 加权随机
	String BBB = "shortestresponse";

	int DUBBO_TIMEOUT = 5000;
	
}
